﻿﻿using System;
 using System.Collections;
using System.Collections.Generic;
 using Com.Enemy.EnemySystem.EnemyAI;
 using Com.Enemy.EnemySystem.EnemyLifecycle;
 using Script.EnemySystem.EnemyState;
using UnityEngine;

/// <summary>
/// 基础生命行为
/// </summary>
public abstract class IEnemyBase : HumanInterfaceCOM
{
    private EnemyStateBase stateBase;

    private void Start()
    {
        stateBase = GetComponent<EnemyStateBase>();
    }

    public override void ITakeDamage(int id, float offset, float damage, DamageType damageType = DamageType.普通)
    {
        stateBase.TakeDamage(id, damage, offset);
    }
}
